package com.csist.service.impl;

import com.csist.pojo.Events;
import com.csist.mapper.EventsMapper;
import com.csist.service.IEventsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 活动 服务实现类
 * </p>
 *
 * @author wy
 * @since 2021-12-01
 */
@Service
public class EventsServiceImpl extends ServiceImpl<EventsMapper, Events> implements IEventsService {

    @Autowired
    private EventsMapper mapper;
    @Override
    public List<Events> getEventsByPageIndex(int pageIndex, int pageNum) {
        return mapper.getEventsByPageIndex(pageIndex,pageNum);
    }

    @Override
    public int queryEventsPageSize() {
        return mapper.queryEventsPageSize();
    }
}
